﻿namespace QuickMail.ViewModels
{
    using DbWorker.DataModels;

    public class FileVm
    {
        public long Id;
        public long LetterId;
        public string FileName;
        public string Extention;
        public string Hash;
        public long Size;

        public FileVm()
        {
        }

        public FileVm(FileDm fileDm)
        {
            Id = fileDm.Id;
            LetterId = fileDm.LetterId;
            FileName = fileDm.FileName;
            Extention = fileDm.Extention;
            Hash = fileDm.Hash;
            Size = fileDm.Size;
        }
    }
}
